package com.ruoyi.report.service;

import com.ruoyi.report.domain.HanZaiEmail;
import com.ruoyi.report.domain.HanZaiEmailUserName;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: IEmailService
 * Date: 2022/3/29
 * Time: 13:05
 **/
public interface HanZaiEmailService {
    //查询邮件
    List<HanZaiEmail> selectEmailList(HanZaiEmail email);
    //根据ID查找用户名
    String selectUserName(Integer userId);
    //遍历所有用户名称
    List<HanZaiEmailUserName> selectUserNameList(Integer userId);
    //添加邮件
    int saveEmail(HanZaiEmail email);
    //删除邮件
    int readEmail(Integer emailId);
    //删除邮件
    int deleteEmail(Integer emailId);
}
